package com.example.teachingSystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.teachingSystem.pojo.entity.Course;
import com.example.teachingSystem.pojo.entity.Exam;
import com.example.teachingSystem.pojo.form.exam.ExamPageQuery;
import com.example.teachingSystem.pojo.vo.ExamVo;
import org.apache.ibatis.annotations.Mapper;

/**
* @author 86147
* @description 针对表【exam(考试表)】的数据库操作Mapper
* @createDate 2023-11-27 21:43:54
* @Entity com.example.teachingSystem.pojo.entity.Exam
*/
@Mapper
public interface ExamMapper extends BaseMapper<Exam> {

    IPage<ExamVo> getMyCoursePageByStu(Page<Course> page, Long studentId, ExamPageQuery queryParams);

    IPage<ExamVo> getMyCoursePageByTea(Page<Course> page, Long teacherId,ExamPageQuery queryParams);

    IPage<ExamVo> getAllCoursePage(Page<Course> page,ExamPageQuery queryParams);
}




